# models.py
from django.db import models

class Movie(models.Model):
    title = models.CharField(max_length=200)
    year = models.IntegerField()
    director = models.CharField(max_length=100)
    description = models.TextField()
    
    def __str__(self):
        return f"{self.title} ({self.year})"
